fix leak in jeeps serial comm on posix. (#1223)
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Thu, 16 Nov 2023 21:30:05 +0000 (14:30 -0700)
committerGitHub <noreply@github.com>
Thu, 16 Nov 2023 21:30:05 +0000 (14:30 -0700)
see #1221

jeeps/gpsserial.cc

index 164054bc3225fb7ac8e1abc0bc44f20c6f09073a..6e20b55748288fb34e27ceb8fd26bd436298dce6 100644 (file)
@@ -604,6 +604,7 @@ int32_t GPS_Serial_Off(gpsdevh* dh)
     gps_errno = HARDWARE_ERROR;
     return 0;
   }
+  xfree(dh);
   return 1;
 }